package org.example.ioc.pack;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Data
public class DemoB {
    // 将IoC容器中的DemoA类型对象赋予a属性
    @Autowired
    private DemoA a;
}
